<?php
header("Content-type: application/rss+xml");
include("../../controllers/read.php");
$db = openDB("../../database.sqlite");
$config = getConfig();
include("../../lib/utilities.php");
include("flow.php");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
  	<title><?php echo $doctitle ?></title>
  	<link><?php echo $doclink ?></link>
  	<language>en-us</language>
  	<description><?php echo $config['tagline'] ?></description>
  	<?php
  	for($i=0; $i<50; $i++) {
  	  $item = $items[$i];
  	  if(isset($item)) {
    	  include($template);
  	  }
    }?>
	</channel>
</rss>